package com.kingyea.mobilepolice.apimanage.accesscontrol.dao;

import com.kingyea.mobilepolice.apimanage.accesscontrol.bean.AccessController;
import com.kingyea.mobilepolice.apimanage.accesscontrol.handle.Keyword;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author chenjw
 * @version v1.0.0
 * @description AccessControllerMapper
 * @date Created in 2018-04-03 15:31:22
 */
@Repository
public interface AccessControllerMapper {

    /**
     * 通过ID获取对象
     */
    AccessController getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    void update(AccessController obj);

    /**
     * 保存对象
     */
    void save(AccessController obj);

    /**
     * 查询列表
     */
    List<AccessController> list(AccessController obj);

    List<Keyword> getKeywordList(@Param("serviceId") String serviceId);

    AccessController getByServiceId(Integer serviceId);

    List searchByCondition(Map<String, Object> map);

    List<Keyword> getAllKeyword();
}
